<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>作业</title>
		<script src="js/jquery-1.11.1.js"></script>
		<style>
			#top{
				margin-top: 100px;
				margin-left: 100px;
			}
			button{
				padding: 10px;
				background-color: darkgray;
				border: none;
			}
			#bottom{
				width: 600px;
				height: 400px;
				background-color: orange;
				margin-left: 100px;
				text-align: center;
				line-height: 400px;
			}
			
		</style>
	</head>
	<body>
		<div id="top">
			<button class="btn1">tab01</button>
			<button class="btn2">tab02</button>
			<button class="btn3">tab03</button>
		</div>
		<div id="bottom"></div>
		<script>
			$('.btn1').click(function(){
				$(".btn2").css("background-color","darkgray");
				$(".btn3").css("background-color","darkgray");
				$(".btn1").css("background-color","orange");
				$('#bottom').text('tab文字内容一');
			});
			$('.btn2').click(function(){
				
				$('#bottom').text('tab文字内容二');
				$(".btn1").css("background-color","darkgray");
				$(".btn3").css("background-color","darkgray");
				$(".btn2").css("background-color","orange");
				
			});
			$('.btn3').click(function(){
				$(".btn1").css("background-color","darkgray");
				$(".btn2").css("background-color","darkgray");
				$(".btn3").css("background-color","orange");
				$('#bottom').text('tab文字内容三');
			});
		</script>
	</body>
</html>